package com.bvgol.examples.springbootLogback.controller;/**
 * @Classname Logcontroller
 * @Description TODO
 * @Date 2022/4/13 14:58
 * @Created by GUOCHEN
 */

import com.bvgol.examples.springbootLogback.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: my-spring-completely
 * @description:
 * @author: GUOCHEN
 * @create: 2022/04/13 14:58
 */
@RestController
@RequestMapping("/log")
public class Logcontroller {
    @Autowired LogService logService;

    /**
     * @Classname Logcontroller
     * @param
     * @return
     * @Description TODO
     * @Date 2022/4/13 14:58
     * @auther by GUOCHEN
     */
     @GetMapping("get/{id}")
     public Object get(@PathVariable("id") String id){
        return logService.implLog(id);
     }
}
